<?php /* Smarty version Smarty-3.1.13, created on 2013-05-16 11:39:21
         compiled from ".\templates\party.tpl" */ ?>
<?php /*%%SmartyHeaderCode:15939517f4f5eeb93c0-71131775%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '52490bc397d8b716bf660d2a5a8f530e49e57953' => 
    array (
      0 => '.\\templates\\party.tpl',
      1 => 1368704356,
      2 => 'file',
    ),
    '9d3840acd837a27297ba054f8bc546ea8525850a' => 
    array (
      0 => 'D:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\hirenbhai\\templates\\main.tpl',
      1 => 1367993738,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '15939517f4f5eeb93c0-71131775',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_517f4f5ef361b4_64346462',
  'variables' => 
  array (
    's_activId' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_517f4f5ef361b4_64346462')) {function content_517f4f5ef361b4_64346462($_smarty_tpl) {?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>!! HIRENBHAI !!</title>
<link rel="stylesheet" type="text/css" href="./css/main.css" />
<link rel="stylesheet" type="text/css" href="./css/style.css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<link rel="stylesheet" href="css/style1.css" media="screen">
	<style type="text/css">
		html, body { margin: 0;	padding: 0; }
		ul.menu { margin: 0px auto 0 auto; }
	</style>
	</head>




<?php if (strlen($_smarty_tpl->tpl_vars['s_activId']->value)>0){?>
<div id="headerContent">
  <div id="headingData"><br>
  	<a href="bill.php"></a>
  </div>
</div>
<body>
	<ul class="menu">
	  <li><a href="#"> Master</a>
	    <ul>
	    	 <li><a href="item.php" align="left"> Item</a></li>
	    	 <li><a href="size.php"  align="left">Size</a></li>
	    	 <li><a href="company.php"  align="left">Company</a></li>
	    	 <li><a href="quality.php"  align="left">Quality</a></li>
	    	 <li><a href="color.php"  align="left">Color</a></li>
	       <li><a href="itemImage.php"  align="left">Item Image</a></li>
	       
      </ul>
    </li>
	  <li><a href="party.php">Party</a><li>
	  <li><a href="partyType.php">Transaction</a><li>
	  <li><a href="order.php"> Order</a><li>
	  <li><a href="orderlist.php"> Order List</a><li>
	  <li><a href="bill.php">Bill</a></li>
	  <li><a href="logout.php">Logout</a><li>
  </ul>
</body>
<?php }?>


<br />
<form name="partyForm" action="party.php" method="post">
<table align="center" border=2>
	<tr>
    <td align="center" class="table1" colspan="6">Party</td>
  </tr>
  <tr>
    <th class="table2">Party Name</th>
    <td class="table2"><input type="text" name="partyName" id="partyName" autofocus required /></td>
    
    <th class="table2">Party Type</th>
    <td class="table2" colspan="3">
      <select name="SelectPartyType">
        <option>Select Party Type</option>
        <option value="Customer">Customer</option>
        <option value="Supplier">Supplier</option>
      </select>	
    </td>
  </tr>
  <tr>
    <th class="table2" align="left">Address1</th>
    <td class="table2"><textarea name="address" rows="5"></textarea></td>
    <th class="table2">Address2</th>
    <td class="table2" colspan="3"><textarea name="address2" rows="5"></textarea></td>
  </tr>
  <tr>
    <th class="table2" align="left">City1</th>
    <td class="table2"><input type="text" name="city" id="city"></td>
    <th class="table2" align="left">City2</th>
    <td class="table2"><input type="text" name="city2" id="city2"></td>
    <td class="table2" colspan="2"></td>
  </tr>
  <tr>
    <th class="table2" align="left">Contact 1</th>
    <td class="table2" colspan="6"><input type="text" name="contact1" id="contact1"></td>
    
  </tr>
  <tr>
    <th class="table2" align="left">Contact 2</th>
    <td class="table2"><input type="text" name="contact2" id="contact2"></td>
    <th class="table2" align="left">Contact 3</th>
    <td class="table2"><input type="text" name="contact3" id="contact3"></td>
    <th class="table2" align="left">Contact 4</th>
    <td class="table2"><input type="text" name="contact4" id="contact4"></td>
  </tr>
  <tr>
    <td align="center" class="table1" colspan="6">Suppiler</td>
  </tr>
  <tr>
    <th class="table2" align="left">Email 1</th>
    <td class="table2"><input type="text" name="email" id="email"></td>
    <th class="table2" align="left">Email 2</th>
    <td class="table2" colspan=""><input type="text" name="email2" id="email2"></td>
    <th class="table2" align="left">Assistant</th>
    <td class="table2" colspan=""><input type="text" name="assistant" id="assistant"></td>
  </tr>
  <tr>
    <th class="table2" align="left">Web</th>
    <td class="table2" colspan="3"><input type="text" name="web" id="web"></td>
    <th class="table2" align="left">Assistance No</th>
    <td class="table2" colspan=""><input type="text" name="assistantNo" id="assistantNo"></td>
  </tr>
  <tr>
    <th class="table2" align="left">Fax1</th>
    <td class="table2" ><input type="text" name="fax1" id="fax1"></td>
    <th class="table2" align="left">Fax2</th>
    <td class="table2" colspan=""><input type="text" name="fax2" id="fax2"></td>
    <th class="table2" align="left">Assistance Address</th>
    <td class="table2" colspan=""><textarea rows="4" cols="50"></textarea></td>
    
  </tr>
  <tr>
  	<td colspan="6" align="center" class="table1"><input type="submit" name="submitBtn" value="Submit" class="button" /></td>
  </tr>
  
</table>
</form>
<br /><br /><br />

<table align="center" border=2>
  <tr>
  	<th class="table1" NOWRAP>Action</th>
    <th class="table1" NOWRAP>Party Name</th>
    <th class="table1" NOWRAP>Party Type</th>
    <th class="table1" NOWRAP>Address</th>
    <th class="table1" NOWRAP>Address2</th>
    <th class="table1" NOWRAP>City</th>
    <th class="table1" NOWRAP>City2</th>
    <th class="table1" NOWRAP>Contact 1</th>
    <th class="table1" NOWRAP>Contact 2</th>
    <th class="table1" NOWRAP>Contact 3</th>
    <th class="table1" NOWRAP>Contact 4</th>
    <th class="table1" NOWRAP>Email 1</th>
    <th class="table1" NOWRAP>Email 2</th>
    <th class="table1" NOWRAP>Web</th>
    <th class="table1" NOWRAP>Fax 1</th>
    <th class="table1" NOWRAP>Fax 2</th>
    <th class="table1" NOWRAP>Assistant</th>
    <th class="table1" NOWRAP>Assistant No</th>
    <th class="table1" NOWRAP>Assistant Add</th>
  </tr>
  <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["pty"])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]);
$_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['name'] = "pty";
$_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['partyArray']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["pty"]['total']);
?>
  <tr>
  	<td class="table2"><a href="partyDelete.php?partyId=<?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['pty']['index']]['partyId'];?>
" onclick="return confirm('Sure to Delete?');"class="link"><img src="./images/deleteIco.png"></a></td>
    <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['pty']['index']]['partyName'];?>
</td>
    <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['pty']['index']]['partyType'];?>
</td>
    <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['pty']['index']]['address'];?>
</td>
    <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['pty']['index']]['address2'];?>
</td>
    <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['pty']['index']]['city'];?>
</td>
    <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['pty']['index']]['city2'];?>
</td>
    <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['pty']['index']]['contact1'];?>
</td>
    <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['pty']['index']]['contact2'];?>
</td>
    <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['pty']['index']]['contact3'];?>
</td>
    <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['pty']['index']]['contact4'];?>
</td>
    <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['pty']['index']]['email'];?>
</td>
    <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['pty']['index']]['email2'];?>
</td>
    <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['pty']['index']]['web'];?>
</td>
    <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['pty']['index']]['fax1'];?>
</td>
    <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['pty']['index']]['fax2'];?>
</td>
    <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['pty']['index']]['assistant'];?>
</td>
    <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['pty']['index']]['assistantNo'];?>
</td>
    <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['pty']['index']]['assistantAdd'];?>
</td>
  </tr>
  <?php endfor; endif; ?>
</table>

</body>
</html><?php }} ?>